/////////////////////////////////////////////////////////////////////////////
// Name:        slposapp.h
// Purpose:     
// Author:      Herry Sugiharto
// Modified by: 
// Created:     07/09/2008 00:21:21
// RCS-ID:      
// Copyright:   Copyright (c) 2000, 2008 Krida Software Division
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _SLPOSAPP_H_
#define _SLPOSAPP_H_


/*!
 * Includes
 */

////@begin includes
#include "wx/image.h"
#include "sql-ledgerpointofsale.h"
////@end includes
#include "libpq-fe.h"
#include "wx/config.h"
#include "wx/html/htmprint.h"

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
////@end control identifiers

/*!
 * SLposApp class declaration
 */

class SLposApp: public wxApp
{    
    DECLARE_CLASS( SLposApp )
    DECLARE_EVENT_TABLE()

public:
    /// Constructor
    SLposApp();

    void Init();

    /// Initialises the application
    virtual bool OnInit();

    /// Called on exit
    virtual int OnExit();

////@begin SLposApp event handler declarations

////@end SLposApp event handler declarations

////@begin SLposApp member function declarations

	wxString GetMarginTop() const { return MarginTop ; }
	void SetMarginTop(wxString value) { MarginTop = value ; }

	wxString GetMarginLeft() const { return MarginLeft ; }
	void SetMarginLeft(wxString value) { MarginLeft = value ; }

	wxString GetCompanyName() const { return CompanyName ; }
	void SetCompanyName(wxString value) { CompanyName = value ; }

	wxString GetCompanyAddress() const { return CompanyAddress ; }
	void SetCompanyAddress(wxString value) { CompanyAddress = value ; }

	wxString GetCompanyPhone() const { return CompanyPhone ; }
	void SetCompanyPhone(wxString value) { CompanyPhone = value ; }

	wxString GetPrintFooter() const { return PrintFooter ; }
	void SetPrintFooter(wxString value) { PrintFooter = value ; }

////@end SLposApp member function declarations

////@begin SLposApp member variables
public:
	PGconn* conn;
	wxConfig* config;
	wxHtmlEasyPrinting* printer;
	wxString conninfo;
	wxString DefaultCustomer;
	wxString CashAccount;
	wxString CardAccount;
	wxString ARaccount;
	wxString MarginTop;
	wxString MarginLeft;
	wxString CompanyName;
	wxString CompanyAddress;
	wxString CompanyPhone;
	wxString PrintFooter;
private:
	wxString ServerAddress;
	wxString ServerPort;
	wxString DatabaseName;
	wxString gUsername;
	wxString gPassword;
////@end SLposApp member variables
};

/*!
 * Application instance declaration 
 */

////@begin declare app
DECLARE_APP(SLposApp)
////@end declare app

#endif
    // _SLPOSAPP_H_
